package com.itheima.myIO;

import java.io.FileOutputStream;
import java.io.IOException;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        // 追加
        FileOutputStream fileOutputStream = new FileOutputStream("D:\\a.txt",true);
        fileOutputStream.write(98);
        fileOutputStream.write(99);
        fileOutputStream.close();
    }
}
